import ArealEffect
import Frog
import random
import pygame

image=pygame.image.load("froggyfog.bmp")
image.set_colorkey((255,0,255))

class FroggyFog(ArealEffect.ArealEffect):
	def __init__(self,x=0,y=0):
		ArealEffect.ArealEffect.__init__(self,x=x,y=y,image=image,timer=600)
	def damageDealt(self,other):
		print 'make it frog'
		if other.canBeTransformed():
			newForm=Frog.Frog()
			period1=random.randint(self.timer,3*self.timer)
			other.transmogrify(newForm,period=period1)